package com.fhz.day008;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class MainActivity extends AppCompatActivity {

    private MyView2 myview2;
    private Button btn;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        myview2 = (MyView2) findViewById(R.id.myview2);
        btn = (Button) findViewById(R.id.btn);

    }

    public void send(View view) {
        myview2.addImageView();
    }
}